package com.dinghui.salary.pojo.dto;

import com.dinghui.salary.pojo.vo.Ids;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author tanrentao
 * @date 2021-09-06
 * @desc 用户登录参数
 */
@Data
@ApiModel(value = "月工资类型参数")
public class MouthTypeDTO extends Ids implements Serializable {

    @ApiModelProperty(value = "id")
    private String id;

    @NotBlank(message = "年份不能为空")
    @ApiModelProperty(value = "年份")
    private String year;


    @NotBlank(message = "月份不能为空")
    @ApiModelProperty(value = "月份")
    private String mouth;

    @NotBlank(message = "工资类型不能为空")
    @ApiModelProperty(value = "工资类型")
    private String salaryTypeId;

    @NotBlank(message = "工资类型不能为空")
    @ApiModelProperty(value = "工资类型")
    private String yearMonth;



    @NotBlank(message = "时间不能为空")
    @ApiModelProperty(value = "时间")
    private String time;

/*    @NotBlank(message = "时间不能为空")
    @ApiModelProperty(value = "时间")
    @JsonFormat(pattern = "yyyy-MM")
    private Date time;*/

}
